• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Using `git blame` to determine the relative "ownership" of a fileEdit

Created 3/3/2012, updated 5/18/2017
$ git blame -t $FILE | \
  cut -f 2 -d '(' | \
  cut -f 1 -d ')' | \
  sed -e 's/[[:digit:]]\+.\+//' | \
  sort | \
  uniq -c | \
  sort -rn
  • git
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).